package atm.zhaz;

import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;

public class MessageWindow extends SmallWindow implements ActionListener {

	public MessageWindow(String message) {
		JButton ok = new JButton("OKoy");

		JLabel login = new JLabel(message);

		Font aa = new Font("Times New Roman", Font.BOLD, 20);
		login.setFont(aa);
		login.setForeground(Color.BLACK);
		login.setBounds(50, 70, 250, 20);

		add(login);

		ok.setBounds(215, 150, 70, 20);
		add(ok);
		ok.addActionListener(this);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if (e.getActionCommand().equals("OKoy")) {
			this.hide();
			dispose();
		}
	}

}
